package com.yj.contract.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

/**
 * Copyright 2017 (C) Yunjian-VC
 * Created on : 2017/12/14
 * Author     : Unbelievable9
 **/
@Data
public class ContractChangeStatusDto {

    @NotNull(message = "合同ID不能为空")
    @ApiModelProperty(value = "合同ID", required = true)
    private String main_id;

    @NotNull(message = "合同状态不能为空")
    @Range(min = 4, max = 5, message = "修改合同状态时, 只能是 4 已完成 或 5 已取消")
    @ApiModelProperty(value = "合同状态: 4 已完成 5 已取消", required = true)
    private Integer status;
}
